<?php
add_action( 'init', 'setup_custom_type'); 
function setup_custom_type() { 
/*	
  $labels = array( 
    'name' => _x('Programs', 'post type general name'), 
    'singular_name' => _x('program', 'post type singular name'), 
    'add_new' => _x('add new programs', 'programs'), 
    'add_new_item' => 'add new programs', 
    'edit_item' => 'edit programs', 
    'new_item' => 'new programs', 
    'view_item' => 'view programs', 
    'search_items' => 'search programs', 
    'not_found' =>  'no programs found', 
    'not_found_in_trash' => 'no programs found in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title', 'editor', 'revisions','author', 'custom-fields','excerpt', 'thumbnail'); 
  
  register_post_type( 'programs', 
    array( 
      	'labels' => $labels, 
    	'taxonomies' => array('post_tag'),
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
*/  
   $labels = array( 
    'name' => _x('News & Events', 'post type general name'), 
    'singular_name' => _x('News & Events', 'post type singular name'), 
    'add_new' => _x('add new News & Events', 'News & Events'), 
    'add_new_item' => 'add new News & Events', 
    'edit_item' => 'edit News & Events', 
    'new_item' => 'new News & Events', 
    'view_item' => 'view News & Events', 
    'search_items' => 'search News & Events', 
    'not_found' =>  'no News & Events found', 
    'not_found_in_trash' => 'no News & Events in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title', 'editor', 'revisions','author', 'custom-fields', 'excerpt','thumbnail'); 
  
  register_post_type( 'news', 
    array( 
      	'labels' => $labels, 
    	'taxonomies' => array('post_tag'),
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
  
/*  
    $labels = array( 
    'name' => _x('Events', 'post type general name'), 
    'singular_name' => _x('event', 'post type singular name'), 
    'add_new' => _x('add new events', 'events'), 
    'add_new_item' => 'add new event', 
    'edit_item' => 'edit event', 
    'new_item' => 'new event', 
    'view_item' => 'view event', 
    'search_items' => 'search event', 
    'not_found' =>  'no events found', 
    'not_found_in_trash' => 'no event in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title', 'editor', 'revisions','author', 'custom-fields', 'excerpt','thumbnail'); 
  
  register_post_type( 'events', 
    array( 
      	'labels' => $labels, 
    	'taxonomies' => array('post_tag'),
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
  
   $labels = array( 
    'name' => _x('Success_students', 'post type general name'), 
    'singular_name' => _x('success_student', 'post type singular name'), 
    'add_new' => _x('add new success_students', 'success_students'), 
    'add_new_item' => 'add new success_student', 
    'edit_item' => 'edit success_student', 
    'new_item' => 'new success_student', 
    'view_item' => 'view success_student', 
    'search_items' => 'search success_student', 
    'not_found' =>  'no success_students found', 
    'not_found_in_trash' => 'no success_student in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title', 'editor', 'revisions','author', 'custom-fields', 'excerpt','thumbnail'); 
  
  register_post_type( 'success_students', 
    array( 
      	'labels' => $labels, 
    	'taxonomies' => array('post_tag'),
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
*/
  /*  
  $labels = array( 
    'name' => _x('Registered_list', 'post type general name'), 
    'singular_name' => _x('registered_list', 'post type singular name'), 
    'add_new' => _x('add new registered_list', 'registered_list'), 
    'add_new_item' => 'add new registered_list', 
    'edit_item' => 'edit registered_list', 
    'new_item' => 'new registered_list', 
    'view_item' => 'view registered_list', 
    'search_items' => 'search registered_list', 
    'not_found' =>  'no registered_list found', 
    'not_found_in_trash' => 'no registered_list in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title', 'editor', 'revisions','author', 'custom-fields'); 
  
  register_post_type( 'registered_list', 
    array( 
      	'labels' => $labels, 
    	'taxonomies' => array('post_tag'),
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
 */ 
  
   $labels = array( 
    'name' => _x('Featured_Programs', 'post type general name'), 
    'singular_name' => _x('Featured_Programs', 'post type singular name'), 
    'add_new' => _x('add new Featured_Programs', 'Featured_Programs'), 
    'add_new_item' => 'add new Featured_Programs', 
    'edit_item' => 'edit Featured_Programs', 
    'new_item' => 'new Featured_Programs', 
    'view_item' => 'view Featured_Programs', 
    'search_items' => 'search Featured_Programs', 
    'not_found' =>  'no Featured_Programs found', 
    'not_found_in_trash' => 'no Featured_Programs in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title', 'editor', 'revisions','author', 'custom-fields', 'excerpt','thumbnail'); 
  
  register_post_type( 'featured_programs', 
    array( 
      	'labels' => $labels, 
    	'taxonomies' => array('post_tag'),
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
  
  $labels = array( 
    'name' => _x('Application', 'post type general name'), 
    'singular_name' => _x('Application', 'post type singular name'), 
    'add_new' => _x('add new Application', 'Application'), 
    'add_new_item' => 'add new Application', 
    'edit_item' => 'edit Application', 
    'new_item' => 'new Application', 
    'view_item' => 'view Application', 
    'search_items' => 'search Application', 
    'not_found' =>  'no Application found', 
    'not_found_in_trash' => 'no Application in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title','editor', 'custom-fields', 'thumbnail'); 
  
  register_post_type( 'application', 
    array( 
      	'labels' => $labels, 
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
  
   $labels = array( 
    'name' => _x('Feedback', 'post type general name'), 
    'singular_name' => _x('Feedback', 'post type singular name'), 
    'add_new' => _x('add new Feedback', 'Feedback'), 
    'add_new_item' => 'add new Feedback', 
    'edit_item' => 'edit Feedback', 
    'new_item' => 'new Feedback', 
    'view_item' => 'view Feedback', 
    'search_items' => 'search Feedback', 
    'not_found' =>  'no Feedback found', 
    'not_found_in_trash' => 'no Feedback in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title','editor', 'custom-fields', 'thumbnail'); 
  
  register_post_type( 'feedback_question', 
    array( 
      	'labels' => $labels, 
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
  
  $labels = array( 
    'name' => _x('Allowance', 'post type general name'), 
    'singular_name' => _x('Allowance', 'post type singular name'), 
    'add_new' => _x('add new Allowance', 'Allowance'), 
    'add_new_item' => 'add new Allowance', 
    'edit_item' => 'edit Allowance', 
    'new_item' => 'new Allowance', 
    'view_item' => 'view Allowance', 
    'search_items' => 'search Allowance', 
    'not_found' =>  'no Allowance found', 
    'not_found_in_trash' => 'no Allowance in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title','editor', 'custom-fields',); 

  
  register_post_type( 'allowance', 
    array( 
      	'labels' => $labels, 
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
  
/* 
    $labels = array( 
    'name' => _x('Questions', 'post type general name'), 
    'singular_name' => _x('Questions', 'post type singular name'), 
    'add_new' => _x('add new Questions', 'Questions'), 
    'add_new_item' => 'add new Questions', 
    'edit_item' => 'edit Questions', 
    'new_item' => 'new Questions', 
    'view_item' => 'view Questions', 
    'search_items' => 'search Questions', 
    'not_found' =>  'no Questions found', 
    'not_found_in_trash' => 'no Questions in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title','editor', 'custom-fields', 'thumbnail'); 

  
  register_post_type( 'questions', 
    array( 
      	'labels' => $labels, 
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
*/  
    //video_show
  
    $labels = array( 
    'name' => _x('video_show', 'post type general name'), 
    'singular_name' => _x('video_show', 'post type singular name'), 
    'add_new' => _x('add new video_show', 'programs'), 
    'add_new_item' => 'add new video_show', 
    'edit_item' => 'edit video_show', 
    'new_item' => 'new video_show', 
    'view_item' => 'view video_show', 
    'search_items' => 'search video_show', 
    'not_found' =>  'no video_show found', 
    'not_found_in_trash' => 'no video_show found in trash', 
    'parent_item_colon' => ''
  ); 
	  
  $supports = array('title', 'editor', 'revisions','author', 'custom-fields','excerpt', 'thumbnail'); 
  
  register_post_type( 'video_show', 
    array( 
      	'labels' => $labels, 
    	'taxonomies' => array('post_tag'),
      	'public' => true, 
		'show_ui' => true,
		'publicly_queryable' => true,
		'exclude_from_search' => false,
    	'has_archive'	=>true,
      	'supports' => $supports
    ) 
  ); 
  
  
  
  
  /********************************taxonomy***********************************/
  
  
  
	$labels = array(
    'name' => _x( 'controller', 'taxonomy general name' ),
    'singular_name' => _x( 'controller', 'taxonomy singular name' ),
    'search_items' => 'search controller' ,
    'popular_items' => 'controller' ,
    'all_items' => 'all controller' ,
    'parent_item' => null,
    'parent_item_colon' => null,
    'edit_item' => 'edit controller' , 
    'update_item' => 'update controller' ,
    'add_new_item' =>  'add new controller' ,
    'new_item_name' => 'new controller' ,
    'separate_items_with_commas' =>  'separate controller with commas ' ,
    'add_or_remove_items' => 'add or remove controller' ,
    'choose_from_most_used' =>  'choose from most used ' ,
    'menu_name' =>  'controller' ,
  ); 

  register_taxonomy('controller',array('post','page','events','news','video_show','featured_programs','application','feedback','questions'),array(
    'hierarchical' => false,
    'labels' => $labels,
    'show_ui' => true,
    'query_var' => true,
    'capabilities' => array('manage_terms' 	=> 'manage_network', 
							'edit_terms' 	=> 'manage_network', 
							'delete_terms'	=> 'manage_network', 
							'assign_terms' 	=> 'edit_posts'   						
  							) 
  ));
  
  add_post_type_support( 'page', 'excerpt' );
  
  $labels = array(
    'name' => _x( 'issue_category', 'taxonomy general name' ),
    'singular_name' => _x( 'issue_category', 'taxonomy singular name' ),
    'search_items' => 'search issue_category' ,
    'popular_items' => 'issue_category' ,
    'all_items' => 'all issue_category' ,
    'parent_item' => null,
    'parent_item_colon' => null,
    'edit_item' => 'edit issue_category' , 
    'update_item' => 'update issue_category' ,
    'add_new_item' =>  'add new issue_category' ,
    'new_item_name' => 'new issue_category' ,
    'separate_items_with_commas' =>  'separate issue_category with commas ' ,
    'add_or_remove_items' => 'add or remove issue_category' ,
    'choose_from_most_used' =>  'choose from most used ' ,
    'menu_name' =>  'issue_category' ,
  ); 

  register_taxonomy('issue_category',array('application','feedback','questions'),array(
    'hierarchical' => false,
    'labels' => $labels,
    'show_ui' => true,
    'query_var' => true,
    'capabilities' => array('manage_terms' 	=> 'manage_network', 
							'edit_terms' 	=> 'manage_network', 
							'delete_terms'	=> 'manage_network', 
							'assign_terms' 	=> 'edit_posts'   						
  							) 
  ));
  
  	$labels = array(
    'name' => _x( 'source', 'taxonomy general name' ),
    'singular_name' => _x( 'source', 'taxonomy singular name' ),
    'search_items' => 'search source' ,
    'popular_items' => 'source' ,
    'all_items' => 'all source' ,
    'parent_item' => null,
    'parent_item_colon' => null,
    'edit_item' => 'edit source' , 
    'update_item' => 'update source' ,
    'add_new_item' =>  'add new source' ,
    'new_item_name' => 'new source' ,
    'separate_items_with_commas' =>  'separate source with commas ' ,
    'add_or_remove_items' => 'add or remove source' ,
    'choose_from_most_used' =>  'choose from most used ' ,
    'menu_name' =>  'source' ,
  ); 

  register_taxonomy('source',array('application','feedback','questions'),array(
    'hierarchical' => false,
    'labels' => $labels,
    'show_ui' => true,
    'query_var' => true,
    'capabilities' => array('manage_terms' 	=> 'manage_network', 
							'edit_terms' 	=> 'manage_network', 
							'delete_terms'	=> 'manage_network', 
							'assign_terms' 	=> 'edit_posts'   						
  							) 
  ));
  
  
 /* 
  	$labels = array(
    'name' => _x( 'program_taxonomy', 'taxonomy general name' ),
    'singular_name' => _x( 'program_taxonomy', 'taxonomy singular name' ),
    'search_items' => 'search program taxonomy' ,
    'popular_items' => 'popular program taxonomy' ,
    'all_items' => 'all program taxonomy' ,
    'parent_item' => null,
    'parent_item_colon' => null,
    'edit_item' => 'edit program taxonomy' , 
    'update_item' => 'update program taxonomy' ,
    'add_new_item' =>  'add program taxonomy' ,
    'new_item_name' => 'new program_taxonomy' ,
    'separate_items_with_commas' =>  'separate program_taxonomy with commas ' ,
    'add_or_remove_items' => 'add or remove program_taxonomy' ,
    'choose_from_most_used' =>  'choose from most used program_taxonomy' ,
    'menu_name' =>  'program_taxonomy' ,
  ); 

  register_taxonomy('program_taxonomy',array('programs'),array(
    'hierarchical' => false,
    'labels' => $labels,
    'show_ui' => true,
    'query_var' => true,
    'capabilities' => array('manage_terms' 	=> 'manage_network', 
							'edit_terms' 	=> 'manage_network', 
							'delete_terms'	=> 'manage_network', 
							'assign_terms' 	=> 'edit_posts'   						
  							) 
  ));
  
*/  
	
	
}
?>